using System;
using System.Windows.Forms;

namespace WinformToolkit.Drawing
{
	/// <summary>
	/// Ellipse tool
	/// </summary>
	class ToolEllipse : WinformToolkit.Drawing.ToolRectangle
	{
		public ToolEllipse()
		{
			Cursor = this.LoadCursor("Ellipse.cur");
		}

        public override void OnMouseDown(DrawArea drawArea, MouseEventArgs e)
        {
			PropertiesEllipse propertiesEllipse = new PropertiesEllipse(e.X, e.Y, 1, 1);

			AddNewObject(drawArea, new DrawEllipse(propertiesEllipse));
        }
	}
}
